package com.eight.cloud.openfeign.admin.factory;


import com.eight.cloud.core.global.model.AppUser;
import com.eight.cloud.openfeign.admin.api.AppClient;
import com.eight.cloud.openfeign.admin.vo.AppVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @ClassName: AppFallbackFactory
 * @Author: TXC
 * @Date: 2025-01-07 18:30
 **/
@Component
@Slf4j
public class AppFallbackFactory implements FallbackFactory<AppClient> {
    @Override
    public AppClient create(Throwable cause) {
        return new AppClient() {
            @Override
            public AppUser querySecretKey(String secretId) {
                return null;
            }

            @Override
            public AppVo query(String uuid) {
                return null;
            }
        };
    }
}
